// PolygonLeafView.cpp : implementation of the CPolygonLeafView class
//

#include "stdafx.h"

#include "PolygonLeafView.h"
#include "PolygonLeafDoc.h"
#include "PolygonLeaf.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif

// CPolygonLeafView

IMPLEMENT_DYNCREATE(CPolygonLeafView, CView)

BEGIN_MESSAGE_MAP(CPolygonLeafView, CView)
END_MESSAGE_MAP()

// CPolygonLeafView construction/destruction

CPolygonLeafView::CPolygonLeafView()
{
	// TODO: add construction code here

}

CPolygonLeafView::~CPolygonLeafView()
{
}

BOOL CPolygonLeafView::PreCreateWindow(CREATESTRUCT& cs)
{
	// TODO: Modify the Window class or styles here by modifying
	//  the CREATESTRUCT cs

	return CView::PreCreateWindow(cs);
}

// CPolygonLeafView drawing

void CPolygonLeafView::OnDraw(CDC* /*pDC*/)
{
	CPolygonLeafDoc* pDoc = GetDocument();
	ASSERT_VALID(pDoc);
	if (!pDoc)
		return;

	// TODO: add draw code for native data here
}


// CPolygonLeafView diagnostics

#ifdef _DEBUG
void CPolygonLeafView::AssertValid() const
{
	CView::AssertValid();
}

void CPolygonLeafView::Dump(CDumpContext& dc) const
{
	CView::Dump(dc);
}

CPolygonLeafDoc* CPolygonLeafView::GetDocument() const // non-debug version is inline
{
	ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CPolygonLeafDoc)));
	return (CPolygonLeafDoc*)m_pDocument;
}
#endif //_DEBUG


// CPolygonLeafView message handlers
